let a=222
let promise=new Promise((resolve,reject)=>{
    if(a>10){
        resolve(a)
    }else{
        reject('失败')
    }
})
promise.then(res=>{
    console.log(res);
}).catch(err=>{
    console.log(err);
})